import { Router } from 'hyper-express';
import requireUser from '../../../middlewares/auth/requireUser';
import cache from '../../../middlewares/cache';
import rowLevelPermission from '../../../middlewares/auth/rowLevelPermission';
//#region AutoCreateCode
import { uctooMinishopActivityGoodsSkuPriceController } from '../../../controllers';
const uctoominishopActivityGoodsSkuPriceRouter = new Router();
const minishopActivityGoodsSkuPriceController = new uctooMinishopActivityGoodsSkuPriceController();

uctoominishopActivityGoodsSkuPriceRouter.post('/add', requireUser, minishopActivityGoodsSkuPriceController.add);
uctoominishopActivityGoodsSkuPriceRouter.post('/edit', requireUser, rowLevelPermission('uctoo/minishop_activity_goods_sku_price'), minishopActivityGoodsSkuPriceController.edit);
uctoominishopActivityGoodsSkuPriceRouter.post('/del', requireUser, rowLevelPermission('uctoo/minishop_activity_goods_sku_price'), minishopActivityGoodsSkuPriceController.delete);

//For getting minishopActivityGoodsSkuPrice with permission control
uctoominishopActivityGoodsSkuPriceRouter.get('/:id', requireUser,  rowLevelPermission('uctoo/minishop_activity_goods_sku_price'), minishopActivityGoodsSkuPriceController.getSingle);
uctoominishopActivityGoodsSkuPriceRouter.get('/:limit/:page', requireUser,  rowLevelPermission('uctoo/minishop_activity_goods_sku_price'), minishopActivityGoodsSkuPriceController.getMany);
uctoominishopActivityGoodsSkuPriceRouter.get('/:limit/:page/:skip', requireUser,  rowLevelPermission('uctoo/minishop_activity_goods_sku_price'), minishopActivityGoodsSkuPriceController.getMany);

//#endregion AutoCreateCode
export default uctoominishopActivityGoodsSkuPriceRouter;
